import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '../views/Dashboard.vue'
import Realtime from '../views/Realtime.vue'
import Laboratory from '../views/Laboratory.vue'
import Heatmap from '../views/Heatmap.vue'
import Trend from '../views/Trend.vue'
import Alert from '../views/Alert.vue'

const routes = [
  {
    path: '/',
    redirect: '/dashboard'
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: Dashboard
  },
  {
    path: '/realtime',
    name: 'Realtime',
    component: Realtime
  },
  {
    path: '/laboratory',
    name: 'Laboratory',
    component: Laboratory
  },
  {
    path: '/heatmap',
    name: 'Heatmap',
    component: Heatmap
  },
  {
    path: '/trend',
    name: 'Trend',
    component: Trend
  },
  {
    path: '/alert',
    name: 'Alert',
    component: Alert
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
